﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dropfeupload
{
    public class FeuploadCredentials
    {
        public string username;
        public string password;

        public FeuploadCredentials(string username, string password)
        {
            if (username == string.Empty)
                throw new CredentialNotValid();

            if (password == string.Empty)
                throw new CredentialNotValid();

            try
            {
                int.Parse(username.Substring(username.Length - 5));
            }
            catch 
            {
                throw new CredentialNotValid();
            }

            this.username = username;
            this.password = password;
        }

        public Exception UsernameNotValid()
        {
            throw new NotImplementedException();
        }

    }
}
